/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chapter5.behavioral.mediator;

/**
 *
 * @author ASUS
 */
public class AmericanSeller {
    Mediator mediator;
    float priceInDollars;
    
    public AmericanSeller(Mediator mediator,float priceInDollar)
    {
        this.mediator = mediator;
        this.priceInDollars = priceInDollars;
        this.mediator.registerAmericanSeller(this);
    }
    
    public boolean isBidAccepted(float bidInDollars)
    {
        if(bidInDollars >= priceInDollars)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
